import request from "../../http";
const customApi = {
  async getCustomData(query) {
    return request({
      url: "/api/supplier/myUser/list",
      method: "get",
      params: query
    });
  },
  async queryCustomData(query) {
    return request({
      url: "/api/supplier/myUser/list",
      method: "get",
      params: query
    });
  },
  async getCustomDetail(userId) {
    return request({
      url: `/api/supplier/myUser/${userId}`,
      method: "get"
    });
  },
  async getOrderInfo(query) {
    return request({
      url: `/api/supplier/myUser/order/${query.id}`,
      method: "get",
      params:query
    });
  }
};

export default customApi;
